import request from '@/utils/request'

// 查询网络列表
export function listNetwork(query) {
  return request({
    url: '/experiment/network/list',
    method: 'get',
    params: query
  })
}

// 查询网络详细
export function getNetwork(networkId) {
  return request({
    url: '/experiment/network/' + networkId,
    method: 'get'
  })
}

// 新增网络
export function addNetwork(data) {
  return request({
    url: '/experiment/network',
    method: 'post',
    data: data
  })
}

// 修改网络
export function updateNetwork(data) {
  return request({
    url: '/experiment/network',
    method: 'put',
    data: data
  })
}

// 删除网络
export function delNetwork(networkId) {
  return request({
    url: '/experiment/network/' + networkId,
    method: 'delete'
  })
}
